package com.zy.service;

import com.spring.InitializingBean;
import com.spring.annotation.Autowired;
import com.spring.annotation.Component;
import com.spring.annotation.Scope;

@Component("userService")
@Scope("prototype")
public class UserService implements InitializingBean {

    @Autowired
    private OrderService orderService;

    public void test() {
//        System.out.println("test");
//        System.out.println(orderService);
    }

    @Override
    public void afterPropertiesSet() {
//        System.out.println("afterPropertiesSet");
    }
}
